package com.itheima.health.sms;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class SendMessageListener {

    @RabbitListener(queues="health-queue")
    public  void  sendMessage(Map map){
        String  telephone = (String)map.get("telephone");
        String code = (String)map.get("code");
        System.out.println(telephone+"===="+code);
        //  阿里云  skd   发送短信 。。。
//        SmsUtils.validUserTelephone(telephone,code);

    }
}
